<template>
  <div>
    <a-card :bordered="false" :body-style="{padding: '0'}">
      <a-form layout="inline">
        <a-row :gutter="24">
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="时间">
              <g-year-picker
                placeholder="请选择学年"
                :is-init="false"
                v-model="year"
              ></g-year-picker>
            </a-form-item>
          </a-col>
          <a-col :xl="12" :lg="12" :md="12" :sm="24">
            <a-form-item label="分院">
              <j-select-depart v-model="orgCode"/>
            </a-form-item>
          </a-col>
        </a-row>
      </a-form>
    </a-card>
    <department-classtime-bashboard :date="year" :org-code="orgCode"></department-classtime-bashboard>
  </div>

</template>

<script>

import GYearPicker from '@views/gfxy/common/GYearPicker'
import moment from 'moment'
import threeYearTotalClasstime from '@views/gfxy/classtime/modules/threeYearTotalClasstime'
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'

import DepartmentClasstimeBashboard from '@views/dashboard/gfxy/department/DepartmentClasstimeBashboard'

export default {
  name: "IndexDepartment",
  components:{
    DepartmentClasstimeBashboard,

    GYearPicker,threeYearTotalClasstime,JSelectDepart
  },
  data(){
    return {
      year: moment().format('YYYY'),
      orgCode:'306',
      height: 420,
    }
  },
  created(){

  },
  methods:{


  },
  mounted(){
    this.orgCode = this.$store.getters.userInfo.orgCode
    console.log(this.orgCode);
  },
}
</script>

<style scoped>

</style>